import axios from 'axios'
let baseURL = '';

if(process.env.NODE_ENV === 'production') {
  baseURL = ''
}else {
  // process.env.NODE_ENV 是 development
  baseURL = '/api'
}

const Axios = axios.create({
  baseURL: baseURL
})

// 拦截器


export default Axios
